A final variable that is not initialized at the time of declaration is known as blank final variable.
If you want to create a variable that is initialized at the time of creating object and once initialized may not be changed, it is useful. For example PAN CARD number of an employee.
It can be initialized only in constructor.
class Student{ int id; String name; final String PAN_CARD_NUMBER; ... }
Liked By
Write Answer
What is blank final variable in java?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
01-Apr-2015A final variable that is not initialized at the time of declaration is known as blank final variable.
If you want to create a variable that is initialized at the time of creating object and once initialized may not be changed, it is useful. For example PAN CARD number of an employee.
It can be initialized only in constructor.